package com.cn.mmd.service;

import com.cn.mmd.mapper.ShrioRoleMapper;
import com.cn.mmd.model.ShrioRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/9 0009.
 */
@Service("shiroRoleService")
public class ShiroRoleServiceImpl implements ShiroRoleService {

    @Autowired
    private ShrioRoleMapper shrioRoleMapper;

    @Override
    public ShrioRole selectByPrimaryKey(Integer roleId) {
        return shrioRoleMapper.selectByPrimaryKey(roleId);
    }

    @Override
    public List<ShrioRole> selectByPaging(ShrioRole shrioRole) {
        return shrioRoleMapper.selectByPaging(shrioRole);
    }

    @Override
    public int selectCount() {
        return shrioRoleMapper.selectCount();
    }
}
